package com.feishi.office.docx4j;

import java.io.*;

public class Test {
    public static void main(String[] args) throws IOException {
        if(1==1){
            String a="aa";
            String b="s";
            String c=a+b;
            System.out.println(c.substring(a.length()));
         return;
        };

        String filePath="d://log.txt";
        BufferedReader bufferedReader=new BufferedReader(new FileReader(filePath));
        String line=null;
        File file=new File(filePath);
        File tmp=new File(file.getParent()+"/tmp");
        tmp.mkdirs();
        int count=0;
        int num=9989;
        BufferedWriter writer=null;
        while ((line=bufferedReader.readLine())!=null){
            if(count%num==0){
                writer=new BufferedWriter(new FileWriter(tmp.getPath()+"/"+(count/num)+".txt"));
            }
            writer.write(line);
        }
    }
}
